package com.web.oa.service;


import com.github.pagehelper.PageInfo;
import com.web.oa.pojo.MenuTree;
import com.web.oa.pojo.SysPermission;
import com.web.oa.pojo.SysRole;

import java.util.List;

public interface SysService {
    List<MenuTree> findMenuTree();

    List<SysPermission> findPermissionListByEmployeeId(String name) throws Exception;

    PageInfo<SysRole> findAllRoles(int pageNum);

    List<SysRole> findAllRoles();

    List<MenuTree> findAllMenuTrees();

    List<SysPermission> findPermissionListByRoleId(String roleId);

    void updateRoleAndPermissionByRoleId(String roleId, int[] permissionIds);

    SysRole findRoleAndPermissionListByUserName(String userName);

    List<SysPermission> findAllMenu();

    List<SysRole> findRoleAndPermissionList();

    void addRoleAndPermissions(SysRole role, int[] permissionIds);

    void addSysPermission(SysPermission permission);
}
